package com.shop.member.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shop.member.dao.MemberOutDAO;
import com.shop.member.vo.MemberVO;

@Service
public class MemberOutServiceImpl implements MemberOutService {

	@Autowired
	private MemberOutDAO dao;

	
	@Override
	public List<MemberVO.MemberOutItem> listMember() {
		return dao.listMember();
	}
	
	/**
	 * 탈퇴회원 등록
	 * @return
	 */
	public int addMember(MemberVO.MemberOutItem memberItem) {
		
		return dao.addMember(memberItem);
	}

	/**
	 * 탈퇴회원 상세조회
	 * @param member_seq
	 * @return
	 */
	public MemberVO.MemberOutItem getMember(String member_seq) {
		return dao.getMember(member_seq);
	}
	/**
	 * 탈퇴회원 수정
	 * @return
	 */
	public int updateMember(MemberVO.MemberOutItem memberItem) {
		return dao.updateMember(memberItem);
	}
	
	/**
	 * 탈퇴회원 삭제
	 * @param member_seq
	 * @return
	 */
	public int deleteMember(String member_seq) {
		return dao.deleteMember(member_seq);
	}
}
